home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Game / misc / WormWars.lha / WormWars / Source / libproto.h < prev    next >
C/C++ Source or Header  |  2004-08-22  |  2KB  |  60 lines

  1. #include <exec/types.h>
  2.  
  3. /* prototypes */
  4. LONG GetPlayer(UWORD midi);
  5. void FreePlayer(void);
  6. void PlayModule(struct MMD0 *module);
  7. void ContModule(struct MMD0 *module);
  8. void StopPlayer(void);
  9. /* void DimOffPlayer(UWORD length); */
  10. void SetTempo(UWORD tempo);
  11. struct MMD0 *LoadModule(char *name);
  12. void UnLoadModule(struct MMD0 *module);
  13. struct MMD0 *GetCurrentModule(void);
  14. void ResetMIDI(void);
  15. void SetModnum(UWORD modnum);
  16. void RelocModule(struct MMD0 *module);
  17.  
  18. /* for octaplayer.library */
  19. LONG GetPlayer8(void);
  20. void FreePlayer8(void);
  21. void PlayModule8(struct MMD0 *module);
  22. void ContModule8(struct MMD0 *module);
  23. void StopPlayer8(void);
  24. struct MMD0 *LoadModule8(char *name);
  25. void UnLoadModule8(struct MMD0 *module);
  26. void SetModnum8(UWORD modnum);
  27. void RelocModule8(struct MMD0 *module);
  28. void SetHQ(LONG hq);
  29.  
  30. /* pragmas for MEDPlayer.library V2.0 - V6.0 */
  31. #ifndef NO_PRAGMAS
  32. #pragma libcall MEDPlayerBase GetPlayer 1E 1
  33. #pragma libcall MEDPlayerBase FreePlayer 24 0
  34. #pragma libcall MEDPlayerBase PlayModule 2A 801
  35. #pragma libcall MEDPlayerBase ContModule 30 801
  36. #pragma libcall MEDPlayerBase StopPlayer 36 0
  37. #pragma libcall MEDPlayerBase SetTempo 42 1
  38. #pragma libcall MEDPlayerBase LoadModule 48 801
  39. #pragma libcall MEDPlayerBase UnLoadModule 4E 801
  40. #pragma libcall MEDPlayerBase GetCurrentModule 54 0
  41. #pragma libcall MEDPlayerBase ResetMIDI 5A 0
  42. /* functions below in V2.0 or later*/
  43. #pragma libcall MEDPlayerBase SetModnum 60 001
  44. #pragma libcall MEDPlayerBase RelocModule 66 801
  45.  
  46. /* prototypes for OctaPlayer.library V2.0 - V6.0 */
  47. #pragma libcall OctaPlayerBase GetPlayer8 1E 0
  48. #pragma libcall OctaPlayerBase FreePlayer8 24 0
  49. #pragma libcall OctaPlayerBase PlayModule8 2A 801
  50. #pragma libcall OctaPlayerBase ContModule8 30 801
  51. #pragma libcall OctaPlayerBase StopPlayer8 36 0
  52. #pragma libcall OctaPlayerBase LoadModule8 3C 801
  53. #pragma libcall OctaPlayerBase UnLoadModule8 42 801
  54. #pragma libcall OctaPlayerBase SetModnum8 48 001
  55. #pragma libcall OctaPlayerBase RelocModule8 4E 801
  56. #pragma libcall OctaPlayerBase SetHQ 54 1
  57. #endif
  58.  
  59. #define OCTAPLR_LIB_PROTOS 1
  60.